package 队列.迷宫队列;

public class Maze {
    public static void main(String[] args) {
        int[][] a = {
            {1, 1, 1, 1, 1, 1},
            {1, 0, 1, 0, 0, 1},
            {1, 0, 1, 0, 1, 1},
            {1, 0, 0, 0, 0, 1},
            {1, 1, 1, 1, 1, 1}
        };
        MazeClass mz = new MazeClass(6, 6);
        mz.Setmg(a);
        if (!mz.mgpath(1, 1, 4, 4))
            System.out.println("不存在迷宫路径");
    }
}